/***********************************************
/gen auto by zuitools
***********************************************/
#ifndef __POINTERACTIVITY_H__
#define __POINTERACTIVITY_H__


#include "app/Activity.h"
#include "entry/EasyUIContext.h"

#include "utils/Log.h"
#include "control/ZKDigitalClock.h"
#include "control/ZKButton.h"
#include "control/ZKCircleBar.h"
#include "control/ZKDiagram.h"
#include "control/ZKListView.h"
#include "control/ZKPointer.h"
#include "control/ZKQRCode.h"
#include "control/ZKTextView.h"
#include "control/ZKSeekBar.h"
#include "window/ZKSlideWindow.h"

/*TAG:Macro宏ID*/
#define ID_POINTER_Diagram1   110002
#define ID_POINTER_sys_back   100
#define ID_POINTER_Label_OIL1   50033
#define ID_POINTER_Label_RPM   50032
#define ID_POINTER_Label_10   50031
#define ID_POINTER_Label_9   50030
#define ID_POINTER_Label_8   50029
#define ID_POINTER_Label_6   50027
#define ID_POINTER_DashbroadView_1   90007
#define ID_POINTER_Label_OIL   50026
#define ID_POINTER_Label_5   50025
#define ID_POINTER_Label_TEMP   50024
#define ID_POINTER_Label_4   50023
#define ID_POINTER_Label_CURM   50022
#define ID_POINTER_Label_3   50021
#define ID_POINTER_Label_TotalM   50020
#define ID_POINTER_Label_2   50019
#define ID_POINTER_View_1   100005
/*TAG:Macro宏ID END*/

class pointerActivity : public Activity, 
                     public ZKSeekBar::ISeekBarChangeListener, 
                     public ZKListView::IItemClickListener,
                     public ZKListView::AbsListAdapter,
                     public ZKSlideWindow::ISlideItemClickListener,
                     public EasyUIContext::ITouchListener
{
public:
    pointerActivity();
    virtual ~pointerActivity();

protected:
    virtual const char* getAppName() const;
    virtual void onCreate();
    virtual void onClick(ZKBase *pBase);
    virtual void onResume();
    virtual void onPause();
    virtual void onIntent(const Intent *intentPtr);
    virtual bool onTimer(int id);

    virtual void onProgressChanged(ZKSeekBar *pSeekBar, int progress);

    virtual int getListItemCount(const ZKListView *pListView) const;
    virtual void obtainListItemData(ZKListView *pListView, ZKListView::ZKListItem *pListItem, int index);
    virtual void onItemClick(ZKListView *pListView, int index, int subItemIndex);

    virtual void onSlideItemClick(ZKSlideWindow *pSlideWindow, int index);

    virtual bool onTouchEvent(const MotionEvent &ev);
};

#endif
